import request from "@/api/request"
//详情
const getdatalist = (model) => request.post('product/getDetails', model)
//详情轮播
const bannerList = (model) => request.post('product/getDetailsPicture', model)
//添加收藏
const loveList = (model) => request.post('/user/collect/addCollect', model)
//收藏渲染
const getloveList = (model) => request.post('/user/collect/getCollect', model)
//删除收藏
const deladdList=(model)=>request.post('/user/collect/deleteCollect',model)
//加入购物车
const shoplove=(model)=>request.post('/user/shoppingCart/addShoppingCart',model)
//删除购物车
const delentList=(model)=>request.post('/user/shoppingCart/deleteShoppingCart',model)
export {
    getdatalist,
    bannerList,
    loveList,
    getloveList,
    deladdList,
    shoplove,
    delentList
}
